package com.example.tagsdemo.entity;

import lombok.Data;

import javax.persistence.*;
import java.util.List;

@Entity
@Table(name = "student_course")
@Data
public class StudentCourse extends BaseData{

    private static final long serialVersionUID = 8365421143296504153L;
//
//    @OneToOne(cascade=CascadeType.ALL)
//    @JoinColumn(name="student_id",referencedColumnName="id")
//    private Student student;

    @OneToOne(cascade=CascadeType.ALL)
    @JoinColumn(name="course_id",referencedColumnName="id")
    private Course course;

    private Float score;

}
